﻿using System;
using Transformable_Engine_v2.Engine.Graphics;
using Transformable_Engine_v2.Engine.Transformable_Math.Geometry;

namespace Platformer_Example.Content.Images.Environment
{
    public class SpritesheetMenu : SpriteSheetInstance
    {
        private static SpriteSheetInstance _instance;
        public static void LoadContent()
        {
            _instance = new SpritesheetMenu();
        }
        public new static Sprite GetSprite(Enum textureName)
        {
            return _instance.GetSprite(textureName);
        }
        public static SpriteSheetInstance GetInstance()
        {
            return _instance;
        }

        public override string SpriteSheetPath
        {
            get
            {
                return "Content/Images/Menu/Menu.png";
            }
        }

        public enum Title
        {
            Project,
            Maverick,
            PressAny
        }

        public enum Checkbox 
        {
            Deactivated,
            Activated,
        }

        public enum Selector
        {
            Arrow,
        }

        public enum Icons
        {
            Refresh,
        }

        protected override void LoadSprites()
        {
            AddSprite(Icons.Refresh, new TE_Rectangle(0, 0, 1, 1));
            AddSprite(Selector.Arrow, new TE_Rectangle(1, 0, 1, 1));

            AddEnumList<Title>(Title.Project, Title.Maverick, new TE_Rectangle(0, 1, 70, 10), SpriteSheet.AddEnumOrientation.Vertical);
            AddSprite(Title.PressAny, new TE_Rectangle(0, 21, 54, 5));

            AddEnumList<Checkbox>(Checkbox.Deactivated, Checkbox.Activated, new TE_Rectangle(2, 0, 1, 1));
        }


    }
}